<?php
class Board extends Controller {

    function Board() {
        parent::Controller();
        $this->load->library('YB_Board');
    }

    /**
     * These functions are just showing the data on the forum.
     * Fetch the data from database and show them here.
     */
    function index() {
        $data['title']='forum';
        $data['content']=$this->yb_board->view_board().''.$this->yb_board->board_stat();
        $this->load->view('main',$data);
    }

    function view_category() {
        $data['title']='forum';
        $data['sidelinks']='side links';
        $data['content']=$this->yb_board->view_category();
        $this->load->view('main',$data);
    }

    function view_forum() {
        $data['title']='forum';
        $data['sidelinks']='side links';
        $data['content']=$this->yb_board->view_forum();
        $this->load->view('main',$data);
    }

    function view_thread($forum_title,$thread_title) {
        $data['title']='forum';
        $data['sidelinks']='side links';
        $data['content']=$this->yb_board->view_thread();
        $this->load->view('main',$data);
    }

   


}

/* End of file welcome.php */
/* Location: ./system/application/controllers/welcome.php */